#ifndef CAT_H
#define CAT_H
#include <iostream>
#include <string>
using namespace std;
class Cat
{
private:
	int age;
	string name;
	//一元操作符重载
	void operator += (const Cat & cat);
	bool operator > (const Cat & cat);
	Cat operator + (const Cat & cat);
	//++i重载
	Cat operator ++();
	//i++重载(规定写法)
	Cat operator ++(int);
public:
	Cat(int age, string name);
	~Cat();
	//这个类的友元函数
	friend void friend_fun();
	friend void operator_overload();
	//这个类的友元类
	friend class Master;


};

#endif // CAT_H
